/*
 * @Author: zhoulei0232
 * @Date: 2023-01-10 23:18:34
 * @LastEditTime: 2023-01-10 23:18:35
 * @LastEditors: zhoulei0232
 * @Description:
 */
import request from "@/utils/request";

// 查询列表
export function listBanner(query) {
  return request({
    url: "/api/banner/list",
    method: "get",
    params: query,
  });
}

// 编辑
export function updateBanner(data) {
  return request({
    url: "/api/banner/update",
    method: "post",
    data: data,
  });
}

// 新增
export function addBanner(data) {
  return request({
    url: "/api/banner/add",
    method: "post",
    data: data,
  });
}
